import request from '@/utils/request'

// 查询关键指标下钻列表
export function listHomeIndicatorsDrillDown(query) {
  return request({
    url: '/down/homeIndicatorsDrillDown/list',
    method: 'get',
    params: query
  })
}

// 查询关键指标下钻详细
export function getHomeIndicatorsDrillDown(id) {
  return request({
    url: '/down/homeIndicatorsDrillDown/' + id,
    method: 'get'
  })
}

// 保存关键指标下钻
export function saveHomeIndicatorsDrillDown(data) {
  return request({
    url: '/down/homeIndicatorsDrillDown/save',
    method: 'post',
    data: data
  })
}

// 删除关键指标下钻
export function delHomeIndicatorsDrillDown(id) {
  return request({
    url: '/down/homeIndicatorsDrillDown/' + id,
    method: 'delete'
  })
}

// 导出关键指标下钻
export function exportHomeIndicatorsDrillDown(query) {
  return request({
    url: '/down/homeIndicatorsDrillDown/export',
    method: 'get',
    params: query
  })
}

// 查询穿透数据sql
export function findDrillDownDataList(data) {
  return request({
    url: '/down/homeIndicatorsDrillDown/findDrillDownDataList',
    method: 'post',
    data: data
  })
}
